package com.aizuda.boot.modules.business.contract.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@TableName("employee_recent_contract_types")
@Schema(description = "员工最近使用合同类型")
@Accessors(chain = true)
public class EmployeeRecentContractTypeEntity {

    @Schema(description = "ID")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Schema(description = "员工ID")
    private Long employeeId;
    
    @Schema(description = "合同类型ID")
    private Integer contractTypeId;
    
    @Schema(description = "最后使用时间")
    private LocalDateTime lastUsedDate;
    
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;
    
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
    
    @Schema(description = "是否有效")
    private Boolean isActive;
}